<%--
  Created by IntelliJ IDEA.
  User: User
  Date: 2024/3/8
  Time: 20:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户登录</title>
</head>
<body>
<h1>用户登录</h1>
<hr>
<form action="<%=request.getContextPath()%>/login">
    用户名:<input type="text" name="username"><br>
    密码:<input type="password" name="password"><br>
    记住密码:
    <input type="radio" name="time" value="week">一周
    <input type="radio" name="time" value="month">一月
    <input type="radio" name="time" value="year">一年
    <br>
    <input type="submit" value="登录">
    <span style="color:red;">
        <%
            String msg = (String) request.getAttribute("loginMsg");
            if(msg != null) {
                out.print(msg);
            }
        %>
    </span>
</form>
</body>
</html>
